home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / telnet.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  1005 b   |  23 lines

  1. /* telnet.h - structures/variables used by CNet's telnet client */
  2.  
  3.  
  4. // TCP includes containing typedefs & "struct sockaddr_in"
  5. #include "netinclude:sys/types.h"
  6. #include "netinclude:netinet/in.h"
  7.  
  8. // each host entry in the sysdata:bbs.tnhost file is parsed and entered into
  9. // list of TNHostEntry structures.
  10. struct TNHostEntry
  11.     {
  12.     char he_system[40];            // 0   - system name (VDE)
  13.     char he_ip[40];                // 40  - pre-defined hostname or IP (VDE)
  14.     int he_port;                    // 80  - telnet port number (VDE)
  15.     char he_data[40];                // 84  - additional/optional text (VDE)
  16.     LONG he_Access;                // 124 - access groups allowed to see/use host (VDE)
  17.     LONG he_Flags;                    // 128 - user must have these Host flags (VDE)
  18.     struct sockaddr_in he_sin;    // ??? - copy of the socket/address info after successful connect. (dynamic remote query)
  19.     LONG he_status;                // ??? - status of host (ie. &128 = killed)
  20.     BYTE he_expansion[100];            // future expansion
  21.     struct TNHostEntry *next;    // 132 - pointer to next TNHostEntry (dynamic)
  22.     };
  23.